package com.leaderhr.fishshop.dao.product;

import java.util.ArrayList;
import java.util.List;

import org.springframework.stereotype.Repository;

import com.leaderhr.fishshop.dao.basic.BaseDaoImpl;
import com.leaderhr.fishshop.form.Pager;
import com.leaderhr.fishshop.form.ProductTypeForm;
import com.leaderhr.fishshop.model.product.ProductType;
@Repository("productTypeDao")
public class ProductTypeDaoImpl extends BaseDaoImpl<ProductType> implements
		IProductTypeDao {

	@Override
	public Pager<ProductType> findProductType() {
		return this.find("from ProductType");
	}


	@Override
	public List<ProductType> listProductType() {
		String	hql = "from ProductType";
		return this.list(hql);
	}


	@Override
	public void update(ProductTypeForm productTypeForm) {
		this.update(productTypeForm);
		
	}
}
